package com.wolong.share.creation.abstract_factory.apple;

import com.wolong.share.creation.abstract_factory.AbstractFactory;
import com.wolong.share.creation.abstract_factory.Product;

/**
 * @author wolong
 */
public class PhoneFactoryImpl implements AbstractFactory {

    /**
     * 获取主产品
     *
     * @return
     */
    @Override
    public Product getMainProduct() {
        return new PhoneProduct();
    }

    /**
     * 获取免费产品
     *
     * @return
     */
    @Override
    public Product getFreeProduct() {
        return new PhoneTagProduct();
    }
}
